swiper {
  height: 340rpx;
  width: 100%;
  text-align: center;
}

swiper swiper-item image {
  width: 50%;
}

.price {
  color: var(--color);
  font-size: 36rpx;
  margin: 20rpx 20rpx 0;
  font-weight: 700;
}

.name {
  overflow: hidden;
  padding: 20rpx 0 20rpx 0;
  border-bottom: 10rpx solid #eee;
  margin: 0 20rpx;

  view {
    float: left;

    i {
      font-size: 45rpx;
      width: 40px;
      display: block;
    }
  }

  view:first-child {
    width: 80%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    border-right: 1px solid #000;
    padding-right: 20rpx;
  }

  view:last-child {
    padding-left: 20rpx;
    text-align: center;

  }
}

.detail {
  padding-bottom: 100rpx;

  .title {
    color: var(--color);
    font-size: 36rpx;
    margin: 20rpx;
    font-weight: 700;
  }

}

.bottom {
  overflow: hidden;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 100rpx;
  background-color: #fff;
  border-top: 1px solid #eee;
  text-align: center;

  .left {
    width: calc(100% - 400rpx);

    view {
      width: calc(100% / 3);
      float: left;
      margin-top: 14rpx;
    }

    i {
      font-size: 40rpx;
    }

    text {
      padding-top: 6rpx;
      display: block;
      font-size: 24rpx
    }
  }

  .cart {
    float: left;
    width: 200rpx;
    height: 100%;
    line-height: 100rpx;
    background-color: rgb(240, 154, 35);
    color: #fff;
  }

  .buy {
    float: left;
    width: 200rpx;
    height: 100%;
    line-height: 100rpx;
    background-color: rgba(249, 18, 18, 0.812);
    color: #fff;
  }
}